@fz10: 10px;
@fz12: 12px;
@fz14: 14px;
@fz16: 16px;
@color-h1: #111111;
@color-h2: #656565;
@color-h3: #919191;
@color-h4: #DF0011;
@color-bg: #f3f4f5;
@theme-color: #DF0011;
page {
  height: 100%;
  overflow: hidden;
  font-size: @fz14;
  box-sizing: border-box;
  background-color: @color-bg;
}

cover-view,
scroll-view,
view,
button,
input {
  box-sizing: border-box;
}

// main
.main {
  position: relative;
  z-index: 1;
  padding: 44px 12px 64px 12px;
  height: 100%;
  overflow: auto;
}

// setting block
.setting {
  border-radius: 4px;
  margin-bottom: 10px;
  background: #ffffff;
  &__item {
    position: relative;
    &:after {
      position: absolute;
      left: 0;
      bottom: 0;
      content: '';
      width: 100%;
      height: 1px;
      background: @color-bg;
      transform: scaleY(.5);
      transform-origin: left bottom;
    }
    &:last-child {
      &:after {
        content: none;
      }
    }
  }
  .item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    &__l {
      border-left: 4px solid @theme-color;
      padding: 0 10px;
      flex-shrink: 0;
      color: @color-h1;
    }
    &__c {
      flex: 1;
      padding: 0 10px;
    }
    &__r {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      .rtext{
        padding: 0 12px;
      }
    }
  }
  .subitem{
    padding: 6px 12px;
    font-size: @fz12;
    // line
    .line{
      display: flex;
      line-height: 2;
      .line__key{
        color: @color-h3;
        width: 85px;
        font-weight: 500;
      }
      .line__val{
        color: @color-h1;
        font-weight: bold;
      }
      .line__val--red{
        color: @theme-color;
      }
    }
  }
}

// button
.fixed.btn-wrap {
  position: fixed;
  z-index: 1;
  left: 0;
  bottom: 12px;
  width: 100%;
  padding: 0 12px;
  display: flex;
  align-items: center;
  .btn {
    border-radius: 3px;
    padding: 0 40px;
    color: #fff;
    font-size: @fz14;
    background: linear-gradient(90deg, @theme-color, #e54b4d);
    box-shadow: 0 0 20px #ccc;
    transition: all 300ms;
    &:before,
    &:after {
      content: none;
    }
    &:active {
      opacity: .8;
    }
  }
}

// material
.material{
  padding-bottom: 12px;
  &__item{
    padding-top: 6px;
    .material-wrap{
      &__t{
        display: flex;
        line-height: 2;
        margin-bottom: 6px;
        align-items: center;
        .mwc{
          flex: 1;
          display: flex;
          align-items: center;
        }
        .text1{
          color: @color-h3;
        }
        .text2{
          
        }
        .text3{
          height: 14px;
          padding: 0 2px;
          line-height: 12px;
          font-size: @fz10;
          border:1px solid rgba(223,0,17,1);
          border-radius:2px;
          color: @theme-color;
          margin: 0 6px;
        }
        .text4{
          color: @theme-color;
        }
      }
      &__b{
        padding-left: 12px;
        .position{
          margin-bottom: 6px;
          &__title{
            display: flex;
            align-items: center;
            .title-l{
              line-height: 2;
              flex: 1;
              color: @color-h3;
            }
            .title-r{
              .icon{
                font-size: 0;
                width: 20px;
                height: 20px;
              }
            }
          }
          &__main{
  
          }
        }
      }
    }
  }
}

// effect
.effect-wrap{
  padding: 12px 0;
  .effect{
    display: flex;
    overflow-x: auto;
    &::-webkit-scrollbar{
      height: 0;
    }
    &__item{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-right: 12px;
      &:last-child{
        margin-right: 0;
      }
      .et{
        width: 120px;
        height: 120px;
        background: #eee;
      }
      .eb{
        font-size: @fz12;
        line-height: 20px;
        color: @color-h2;
      }
    }
  }
}

// hairline
.hairline {
  width: 100%;
  height: 1px;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 1px;
    transform: scale(.5);
    transform-origin: left bottom;
    background: #dddddd;
  }
}


// ads pics
.ads-pics{
  overflow: hidden;
  margin-bottom: 12px;
  &__item{
    float: left;
    height: 50px;
    line-height: 50px;
    text-align: center;
  }
  &__item:nth-child(1){
    width: 100%;
    background: pink;
  }
  &__item:nth-child(2){
    width: 50%;
    background: blue;
  }
  &__item:nth-child(3){
    width: 50%;
    background: orange;
  }
  >image{
    width: 100%;
  }
}



// count
.count{
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: @color-h2;
  font-size: @fz14;
  &__l, &__r{
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: @fz12;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid @color-h3;
  }
  &__c{
    flex: 1;
    margin: 0 12px;
    text-align: center;
  }
}